<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link th:href="${ecs_css_path}" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS|" th:href="${feed_url}" />

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>

  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>

<!-- {if $cart_goods} 如果有批发商品 -->
<!-- 批发商品购物车 -->
<div class="block">
  <h5><span></span></h5>
  <div class="blank"></div>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th bgcolor="#ffffff"></th>
            <th bgcolor="#ffffff"></th>
            <th bgcolor="#ffffff"></th>
            <th bgcolor="#ffffff"></th>
            <th bgcolor="#ffffff"></th>
            <th bgcolor="#ffffff"></th>
          </tr>
          <!-- {foreach from=$cart_goods key=key item=goods} 循环批发商品开始 -->
          <tr>
            <td bgcolor="#ffffff" align="center"><a th:href="${goods.goods_url}" target="_blank" class="f6"></a></td>
            <td bgcolor="#ffffff" align="center"></td>
            <td bgcolor="#ffffff" align="center"></td>
            <td bgcolor="#ffffff" align="center"></td>
            <td bgcolor="#ffffff" align="center"></td>
            <td bgcolor="#ffffff" align="center"><a href="wholesale.html?act=drop_goods&key=" class="f6"></a></td>
          </tr>
          <!--{/foreach}-->
        </table>
   <form method="post" action="wholesale.php?act=submit_order">
          <table border="0" cellpadding="5" cellspacing="1" width="100%">
            <tr>
              <td class="f5" style="text-decoration:none;"></td>
            </tr>
            <tr>
              <td><textarea name="remark" rows="4" class="border" style="width:99%; border:1px solid #ccc;"></textarea>
              </td>
            </tr>
            <tr>
              <td align="center"><input type="submit" class="bnt_bonus"  value="" /></td>
            </tr>
          </table>
        </form>
</div>
<div class="blank5"></div>
<!-- {/if} -->

<!-- {if $wholesale_list} 如果有批发商品 -->
<div class="block">
  <h5><span></span>：
  <a href="javascript:void(0);" onClick="javascript:display_mode_wholesale('list')"><img align="middle" src="/static/images/display_mode_list<!-- {if $pager.display == 'list'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.list}"></a>
  <a href="javascript:void(0);" onClick="javascript:display_mode_wholesale('text')"><img align="middle" src="/static/images/display_mode_text<!-- {if $pager.display == 'text'} -->_act<!-- {/if} -->.gif" th:attr="alt=${lang.display.text}"></a>&nbsp;&nbsp;<a href="wholesale.html?act=price_list" class="f6"></a></h5>
  <div class="blank"></div>

  <table border="0" cellpadding="5" cellspacing="1" width="100%">
    <form method="post" action="wholesale.php?act=list" name="wholesale_search">
      <tr>
        <td align="right">
        
        <select name="search_category" id="search_category">
        <option value="0"></option>
        
        </select>
        <input name="search_keywords" type="text" id="search_keywords" value="" style="width:110px;"/>
        <input name="search" type="submit" value="" class="go" />
        <input type="hidden" name="search_display" value="" id="search_display" />
        </td>
      </tr>
    </form>
  </table>

  <form name="wholesale_goods" action="wholesale.php?act=add_to_cart" method="post">
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <th width="200" align="center" bgcolor="#ffffff"></th>
              <th width="200" align="center" bgcolor="#ffffff"></th>
              <th width="250" align="center" bgcolor="#ffffff"></th>
              <th width="80" align="center" bgcolor="#ffffff"></th>
              <th width="130" align="center" bgcolor="#ffffff">&nbsp;</th>
            </tr>

            <!-- {foreach from=$wholesale_list item=wholesale} 循环批发商品开始 -->
            <tr>
              <td bgcolor="#ffffff">{if $pager.display == 'list'}<a th:href="${wholesale.goods_url}" target="_blank"><img th:src="${wholesale.goods_thumb}" th:attr="alt=${wholesale.goods_name}" /></a>{/if}<a th:href="${wholesale.goods_url}" target="_blank" class="f6"></a></td>
              <td bgcolor="#ffffff">

                <table width="100%" border="0" align="center">
                  <!-- {foreach from=$wholesale.goods_attr item=property_group key=key} -->
                  <!-- {foreach from=$property_group item=property} -->
                  <tr>
                    <td nowrap="true" style="border-bottom:2px solid #ccc;"></td>
                    <td style="border-bottom:1px solid #ccc;"></td>
                  </tr>
                  <!-- {/foreach}-->
                  <!-- {/foreach}-->
                </table>
              </td>

              <td bgcolor="#ffffff">
                <!-- {foreach from=$wholesale.price_ladder key=key item=attr_price} -->
                <table width="100%" border="0" align="center" cellspacing="1" bgcolor="#547289">
                  <!-- {if $attr_price.attr neq ''} -->
                   <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;" colspan="2">
                      <!-- {foreach from=$attr_price.attr key=attr_key item=attr_value} -->                :&nbsp;<!-- {/foreach} -->
                    </td>
                  </tr>
                  <!-- {/if} -->

                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;"></td>
                    <td bgcolor="#ffffff" style="padding:5px;"></td>
                  </tr>

                  <!-- {foreach from=$attr_price.qp_list key=qp_list_key item=qp_list_value} -->
                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;"></td>
                    <td bgcolor="#ffffff" style="padding:5px;"></td>
                  </tr>
                  <!-- {/foreach} -->
                </table>
                <br />
                <!-- {/foreach} -->
              </td>
              <td align="center" bgcolor="#ffffff" style="padding:5px;">
                <!-- {foreach from=$wholesale.price_ladder key=key1 item=attr_price1} -->
                <table width="100%" border="0" align="center" cellspacing="0" bgcolor="#547289">
                  <!-- {if $attr_price1.attr neq ''} -->
                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;" colspan="2">
                      <input name="goods_number[][]" type="text" class="inputBg" value="" size="10" />
                      <!-- {foreach from=$attr_price1.attr key=attr_key1 item=attr_value1} -->
                      <input name="attr_id[][][][attr_id]" type="hidden" value=""/>
                      <input name="attr_id[][][][attr_val_id]" type="hidden" value=""/>
                      <input name="attr_id[][][][attr_name]" type="hidden" value=""/>
                      <input name="attr_id[][][][attr_val]" type="hidden" value=""/>
                      <!-- {/foreach} -->
                    </td>
                  </tr>
                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;" colspan="2">&nbsp;</td>
                  </tr>
                  <!-- {else} -->
                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;" colspan="2">
                    <input name="goods_number[]" type="text" class="inputBg" value="" size="10" />
                    </td>
                  </tr>
                  <!-- {/if} -->

                  <!-- {foreach from=$attr_price.qp_list key=qp_list_key item=qp_list_value} -->
                  <tr>
                    <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;" colspan="2">&nbsp;</td>
                  </tr>
                  <!-- {/foreach} -->
                  </table>
                <br />
                <!-- {/foreach} -->

              </td>
              <td bgcolor="#ffffff" align="center">
              <input name="image" type="image" onClick="this.form.elements['act_id'].value = " src="/static/images/bnt_buy_1.gif" style="margin:8px auto;" />
              </td>
            </tr>
            <!--{/foreach}-->

          </table>
          <input type="hidden" name="act_id" value="" />
          <input type="hidden" name="display" value="" id="display" />
        </form>
  <div class="blank5"></div>
     <div th:replace="common/tpls/pages_tpl::pages"></div>
  </div>
  <!-- {else} -->
  <div style="margin:2px 10px; font-size:14px; text-align:center; line-height:36px;"><B></B></div>
  <!-- {/if} -->
<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
</html>
{if $search_category > 0}
<script language="javascript">
document.getElementById('search_category').value = '';
</script>
{/if}